/*
 * CardApplication.java
 *
 * Created on 5. Februar 2007, 12:42
 *
 *  This file is part of JSmex.
 *
 *  JSmex is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  JSmex is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Foobar; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

package jsmex.function;

/**
 *
 * @author Tobias Senger
 */
public class CardApplication {
    
    private byte[] aid;
    private byte lifeCycleState;
    private byte appPrivileges;
    private byte subset;
    
    /**
     * Creates a new instance of CardApplication
     */
    public CardApplication(byte[] appid, byte lifeCycleState, byte appPrivileges, byte subset) {
        this.aid = new byte[appid.length];
        System.arraycopy(appid,0,aid,0,aid.length);
        this.lifeCycleState = lifeCycleState;
        this.appPrivileges = appPrivileges;
        this.subset = subset;
    }
    
    public byte[] getAID() {
        return aid;
    }
    
    public byte getPrivileges() {
        return appPrivileges;
    }
    
    public byte getLifeCycleState() {
        return lifeCycleState;
    }
    
    public byte getSubset() {
        return subset;
    }
    
}
